import request from '@/utils/request'

// 查询管家设置列表
export function listMajordomo(query) {
  return request({
    url: '/guanjia/majordomo/list',
    method: 'get',
    params: query
  })
}

// 查询管家设置详细
export function getMajordomo(id) {
  return request({
    url: '/guanjia/majordomo/' + id,
    method: 'get'
  })
}

// 新增管家设置
export function addMajordomo(data) {
  return request({
    url: '/guanjia/majordomo',
    method: 'post',
    data: data
  })
}

// 修改管家设置
export function updateMajordomo(data) {
  return request({
    url: '/guanjia/majordomo',
    method: 'put',
    data: data
  })
}

// 删除管家设置
export function delMajordomo(id) {
  return request({
    url: '/guanjia/majordomo/' + id,
    method: 'delete'
  })
}
